home *** CD-ROM | disk | FTP | other *** search
- on mouseDown me
- set mySprite to the spriteNum of me
- set myTextMember to the name of member the member of sprite (mySprite - 2)
- case myTextMember of
- "fStartMonth":
- set MinValore to 1
- "fStartDay":
- set MinValore to 1
- "fStartYear":
- set MinValore to TodayYear()
- otherwise:
- set MinValore to 0
- end case
- set Valore to value(field myTextMember)
- if Valore <= MinValore then
- exit
- end if
- if the rollOver <> mySprite then
- exit
- end if
- set myBtnUp to the name of member the member of sprite mySprite
- if Valore > MinValore then
- set the member of sprite mySprite to BtnDw(myBtnUp)
- updateStage()
- set Valore to Valore - 1
- put Valore into field myTextMember
- end if
- repeat with i = 1 to 5000
- if the mouseUp then
- set the member of sprite mySprite to myBtnUp
- updateStage()
- exit
- end if
- end repeat
- repeat while the stillDown and (Valore > MinValore)
- if the rollOver = mySprite then
- set the member of sprite mySprite to BtnDw(myBtnUp)
- set Valore to value(field myTextMember) - 1
- if Valore < MinValore then
- exit repeat
- end if
- put Valore into field myTextMember
- else
- set the member of sprite mySprite to myBtnUp
- end if
- updateStage()
- end repeat
- set the member of sprite mySprite to myBtnUp
- updateStage()
- end
-